package com.github.llyb120.calengine.rule;

import com.github.llyb120.performance.define.Converter;
import com.github.llyb120.performance.define.Dataset;
import groovy.lang.Closure;

public class ConverterWrapper extends Converter {
    private RuleEngine ruleEngine;
    private Converter innerObject;

    public ConverterWrapper(RuleEngine ruleEngine, Converter converter) {
        this.ruleEngine = ruleEngine;
        this.innerObject = converter;
    }

    @Override
    public String getName() {
        return innerObject.getName();
    }

    @Override
    public void setName(String name) {
        innerObject.setName(name);
    }

    @Override
    public Closure getInput() {
        return innerObject.getInput();
    }

    @Override
    public void setInput(Closure input) {
        innerObject.setInput(input);
    }

    @Override
    public Closure getOutput() {
        return innerObject.getOutput();
    }

    @Override
    public void setOutput(Closure output) {
        innerObject.setOutput(output);
    }
}
